
# 想将print()函数的输出重定向到一个文件中去
def demo_1():
    with open('../temp/test.txt', 'wt') as f:
        print('hello kepler....asdasd', file=f)
        f.close()

if __name__ == '__main__':
    demo_1()